const { override,addWebpackAlias,fixBabelImports } = require('customize-cra');
const path = require('path')

module.exports = override(
    addWebpackAlias({
        ['@comp']: path.resolve(__dirname, 'src/components'),
        ["@net"]: path.resolve(__dirname,"src/network"),
        ["@comm"]: path.resolve(__dirname,"src/common"),
        ["@router"]: path.resolve(__dirname,"src/routerConfig"),
        ["@assets"]: path.resolve(__dirname,"src/assets"),
        ["@apps"]: path.resolve(__dirname,"src/apps"),
        ["@pages"]: path.resolve(__dirname,"src/apps/index/pages"),

    }),
    fixBabelImports("import",{
        libraryName:"antd", 
        libraryDirectory:"es",
        style:"css"
    })
);